import { FormInstance } from 'antd/lib/form'

export interface pageType {
  pageIndex: number // 页码
  pageSize: number // 每页数量
  totalCount?: number // 订单总数
}

export interface IFilterParams {
  filterForm: FormInstance
  clearModal: any
}

// 表格数据ts
export interface TableDataType {
  hospitalCode: number
  hospitalName: string
  provinceId: number
  cityId: number
  inpatientWardId: number
  areaId: number | null
  oneTypeName: string
  twoTypeName: string
  wardName: string
  username: string
  phone: string
  loginTimes: number | null
  lastLoginDate: string
}

export interface ITableParams {
  handleChangePage: (page: number, pageSize?: number) => void
  pageParams: pageType
  setShowMange: (value: boolean) => void
  tableData: TableDataType[]
  affifmDelete: (value: any) => void
  clickExamine: (value: any) => void
}

export interface IManage {
  showManage: boolean
  setShowMange: (value: boolean) => void
  filterAddWardAdminButton: () => boolean
  clickAddWordAdminOpenModal: () => void
  clickEditWordAdminModal: (value: any) => void
  handelModal: () => void
  modalLinkageData: any
  modalForm: any
  modalFinish: any
}

export interface topConfigType {
  getWardSelectValue: (params: any) => void
  getLoginTimeValue: (params: string) => void
  getInputValue: (params: string) => void
  inputEnter: () => void
  exportDataClick: () => void
  yearDatas: any
  topWordSelectCascader: any
  addAndEdit: boolean
}
export interface IWardManage {
  tableParams: ITableParams
  filterParams: IFilterParams
  manageParams: IManage
  topConfig: topConfigType
}
